<?php $tax_rates = $form->getObject() ?>
<h1><?php echo $tax_rates->isNew() ? __("New ") :  __("Edit ")?><?php echo __("Taxrates") ?></h1>

<form action="<?php echo url_for('taxrates/update'.(!$tax_rates->isNew() ? '?tax_rates_id='.$tax_rates->getTaxRatesId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('taxrates/index') ?>"><?php echo __("Cancel") ?></a>
          <?php if (!$tax_rates->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'taxrates/delete?tax_rates_id='.$tax_rates->getTaxRatesId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value=<?php echo __("Save") ?> />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['tax_zone_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['tax_zone_id']->renderError() ?>
          <?php echo $form['tax_zone_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['tax_class_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['tax_class_id']->renderError() ?>
          <?php echo $form['tax_class_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['tax_priority']->renderLabel() ?></th>
        <td>
          <?php echo $form['tax_priority']->renderError() ?>
          <?php echo $form['tax_priority'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['tax_rate']->renderLabel() ?></th>
        <td>
          <?php echo $form['tax_rate']->renderError() ?>
          <?php echo $form['tax_rate'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['tax_description']->renderLabel() ?></th>
        <td>
          <?php echo $form['tax_description']->renderError() ?>
          <?php echo $form['tax_description'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['created_at']->renderLabel() ?></th>
        <td>
          <?php echo $form['created_at']->renderError() ?>
          <?php echo $form['created_at'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['updated_at']->renderLabel() ?></th>
        <td>
          <?php echo $form['updated_at']->renderError() ?>
          <?php echo $form['updated_at'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['deleted_at']->renderLabel() ?></th>
        <td>
          <?php echo $form['deleted_at']->renderError() ?>
          <?php echo $form['deleted_at'] ?>

        <?php echo $form['tax_rates_id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
